Inheritance diagram for TMCSocket:

Public Member Functions | |
| virtual MCErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj) |
| virtual uint32 MCCOMAPI | AddRef () |
| virtual uint32 MCCOMAPI | Release () |
| virtual void MCCOMAPI | Init (EProtocol protocol, int32 portNumber) |
| virtual void MCCOMAPI | SendBroadcast (uint32 broadcastAddress, const TMCString &message) |
| virtual void MCCOMAPI | BindToPort () |
| virtual boolean MCCOMAPI | WaitForReadableData (float timeOutInSeconds) |
| virtual void MCCOMAPI | ListenForConnections () |
| virtual bool MCCOMAPI | Accept (IMCSocket *outSocket, float timeOutInSeconds) |
| virtual bool MCCOMAPI | Connect (const char *serverAddress, float timeOut) |
| virtual int32 MCCOMAPI | GetData (char *buffer, int32 bufferSize) |
| virtual int32 MCCOMAPI | PutData (const char *buffer, int32 bytesCount) |
| virtual boolean MCCOMAPI | IsClosed () |
| virtual void MCCOMAPI | Close () |
Static Public Member Functions | |
| static void | Initialize () |
| static void | GetHostIPAddress (uint32 &ipAddress, uint32 subNetID, uint32 subNetMask) |
| static void | IPtoString (uint32 address, TMCString &string) |
| static void | StringtoIP (const TMCString &string, uint32 &address) |
| static void | GetDefaultSubNet (uint32 &subNetID, uint32 &subNetMask) |
| static void | GetHostName (TMCString &name) |
| static int32 | CheckForRead (const TMCCountedPtrArray< IMCSocket > &socketArray, real timeOutInSeconds) |
| static void | Create (IMCSocket **socket) |
Protected Member Functions | |
| TMCSocket () | |
| ~TMCSocket () | |
Protected Attributes | |
| int32 | fPortNumber |
| uint32 | fSocketID |
| EProtocol | fProtocol |
Static Protected Attributes | |
| static boolean | sInitialized |
Classes | |
| struct | IPAddress |
|
|
|
|
|
|
|
||||||||||||
|
Waits for a connection on a socket. Returns a new socket if a connection is established
Implements IMCSocket. |
|
|
Increments the reference count of the object Reimplemented from TMCSMPCountedObject. |
|
|
binds the socket to its port Implements IMCSocket. |
|
||||||||||||
|
|
|
|
Closes the socket. Implements IMCSocket. |
|
||||||||||||
|
Implements IMCSocket. |
|
|
|
|
||||||||||||
|
returns the number of characters read Implements IMCSocket. |
|
||||||||||||
|
Returns the default the subnet info (the first adapter found on the system)
|
|
||||||||||||||||
|
Returns the IP address of the local machine on a given sub net. If no address matches the given subnet then the first ip address is returned.
|
|
|
Returns a string that contains the name of the local machine
|
|
||||||||||||
|
|
|
|
should be called once before using any of the socket code |
|
||||||||||||
|
Returns the string that corresponds to an IP address.
|
|
|
Implements IMCSocket. |
|
|
Implements IMCSocket. |
|
||||||||||||
|
Implements IMCSocket. |
|
||||||||||||
|
Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.
Reimplemented from TMCSMPCountedObject. |
|
|
Decrements the reference count of the object. If the reference count reaches zero, the object is destroyed. Reimplemented from TMCSMPCountedObject. |
|
||||||||||||
|
broadcast udp message Implements IMCSocket. |
|
||||||||||||
|
Returns the IP address corresponding to a string
|
|
|
wait for data to be available for reading, return false if times out Implements IMCSocket. |
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5